

<template>
  <div class="home">
    <h1>我是父组件</h1>
    <HelloWorld msg="Welcome to Your Vue.js App">
      <template scope="scopeData">
        <ul>
          <li v-for="(g,index) in scopeData.list" :key="index">{{g}}</li>
        </ul>
      </template>
    </HelloWorld>
  </div>
</template>
 
<script>
// @ is an alias to /src
import HelloWorld from "./zuoyongyu.vue";
 
export default {
  name: "Home",
  components: {
    HelloWorld,
  },
  //父组件根据子组件的数据生成对应的结构插入到子组件中去
};
</script>

